package kadledav.adventure.framework.model.general.impl;

import kadledav.adventure.framework.model.general.Description;

public class DescribableBasicObject implements Description {
	protected String description;
	protected String name;

	public DescribableBasicObject(String name, String description) {
		super();
		this.description = description == null ? "" : description;
		this.name = name == null ? "" : name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getFullInfo() {
		String descInfo = "";
		if (getName() != null && !getName().isEmpty()) {
			descInfo = getName();
		}
		if (getDescription() != null && !getDescription().isEmpty()) {
			descInfo += " - " + getDescription();
		}
		return descInfo;
	}

}
